#pragma once
#include "sourcecounterbase.h"
#include <string>
using namespace std;
class CCppCounter :
	public CSourceCounterBase
{
public:
	CCppCounter(void);
	virtual ~CCppCounter(void);
	virtual bool CountFile(const TCHAR *pszFile, int &nBlankLines, int &nSourceLines, int &nCommentLines);
protected:
	bool IsBlankLine(const string &strline) const;
	bool IsCommentLine(const string &strline) const;
	bool MatchFirstHalfComment(const string &strline) const;
	bool MatchLastHalfComment(const string &strline) const;
	bool IsCodeLine(const string &strline) const;
private:
	bool m_bMatchHalfComment;
};
